import {lazy} from "react"
import { Navigate} from "react-router-dom"
const Home = lazy(()=>import("../pages/Home"))
const Floor = lazy(()=>import("../pages/Floor"))
const Routerconfig = [
    {
        path:"/home",
        element:<Home></Home>
    },
    {
        path:"/floor",
        element:<Floor></Floor>
    },
    {
        path:"/",
        element:<Navigate to="/home"></Navigate>
    }
]
export default Routerconfig